package file;

import java.io.File;

public class Demo4 {
    //创建目录
    public static void main(String[] args) {
       // File file = new File("test2");
        File file = new File("test2/aa/1");
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println("======================");
      //  file.mkdir();//创建单级目录
        file.mkdirs();//创建多级目录
        System.out.println(file.exists());
        System.out.println(file.isDirectory());

    }
}
